Conditions | 1 |
Total Lines | 7 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import commander from 'commander' |
||
3 | |||
4 | export default (program: typeof commander): commander.Command => program |
||
5 | .command('use <service> <version>') |
||
6 | .description('Switch a version of a specific service, i.e. use PHP 7.4 instead of 7.2.') |
||
7 | .action((service: string, version: string) => { |
||
8 | (new UseController()).execute(service, version).catch(err => console.log(err.message)) |
||
9 | }) |